import request from '@/utils/request'

//查询房源列表
export function list(data){
   return request({
      url: "/housing/housing/list",
      method: "post",
      data: data
   })
}

//修改房源为推荐状态
export function updateId(query){
  return request({
    url: "/housing/housing/updateId",
    method: "get",
    params: query
  })
}

//修改房源为不推荐状态

export function updateById(query){
  return request({
    url: "/housing/housing/updateById",
    method: "get",
    params: query
  })
}
